package com.zxr.service.impl;

import java.util.List;

import com.zxr.commen.Pageing;
import com.zxr.commen.PageingFinder;
import com.zxr.dao.SysrightDao;
import com.zxr.service.SysrightService;
import com.zxr.vo.Equipment;
import com.zxr.vo.Sysright;

public class SysrightServiceImpl implements SysrightService {

	public SysrightDao sysrightDao;
	public List<Sysright> findSysrightAll() {
		Pageing page=new Pageing();
		page.setStartOfPage(-1);
		page.setStartOfPage(-1);
		return sysrightDao.pageSysright(page);
	}

	public PageingFinder<Sysright> pageSysright(Pageing page) {
		PageingFinder<Sysright> pageingFinder=new PageingFinder<Sysright>();
		pageingFinder.setDataList(sysrightDao.pageSysright(page));
		pageingFinder.setRowCount(sysrightDao.pageSysrightCount(page));
		return pageingFinder;
	}

	public Long pageSysrightCount(Pageing page) {
		return sysrightDao.pageSysrightCount(page);
	}

	public void addSysright(Sysright sysright) {
		sysrightDao.addSysright(sysright);

	}

	public void deleteSysright(int id) {
		sysrightDao.deleteSysright(id);

	}

	public void updateSysright(Sysright sysright) {
		sysrightDao.updateSysright(sysright);

	}

	public Sysright findSysrightById(String rightid) {
		return sysrightDao. findSysrightById(rightid);
	}

	public void setSysrightDao(SysrightDao sysrightDao) {
		this.sysrightDao = sysrightDao;
	}

	

	
}
